﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using _1242026_1242133.DTO;
using _1242026_1242133.DAO;

namespace _1242026_1242133.BUS
{
    class PhongBUS
    {
        
        // methods of Phong
        public DataTable ThemPhong(PhongDTO PhongDTO)
        {
           PhongDAO DAO = new PhongDAO();
           return DAO.ThemPhong(PhongDTO);
        }

        public DataTable LoadDanhSachPhong()
        {
            PhongDAO DAO = new PhongDAO();
            return DAO.LoadDanhSachPhong();
        }

        public DataTable XoaPhong(PhongDTO PhongDTO)
        {
            PhongDAO DAO = new PhongDAO();
            return DAO.XoaPhong(PhongDTO);
        }
        public DataTable SuaPhong(PhongDTO PhongDTO)
        {
            PhongDAO DAO = new PhongDAO();
            return DAO.SuaPhong(PhongDTO);
        }

      
    }
}
